package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbVirusDeviceMapper;
import com.ruoyi.system.domain.TbVirusDevice;
import com.ruoyi.system.service.ITbVirusDeviceService;

/**
 * virus deviceService业务层处理
 * 
 * @author SJQ
 * @date 2024-11-01
 */
@Service
public class TbVirusDeviceServiceImpl implements ITbVirusDeviceService 
{
    @Autowired
    private TbVirusDeviceMapper tbVirusDeviceMapper;

    /**
     * 查询virus device
     * 
     * @param id virus device主键
     * @return virus device
     */
    @Override
    public TbVirusDevice selectTbVirusDeviceById(Long id)
    {
        return tbVirusDeviceMapper.selectTbVirusDeviceById(id);
    }

    /**
     * 查询virus device列表
     * 
     * @param tbVirusDevice virus device
     * @return virus device
     */
    @Override
    public List<TbVirusDevice> selectTbVirusDeviceList(TbVirusDevice tbVirusDevice)
    {
        return tbVirusDeviceMapper.selectTbVirusDeviceList(tbVirusDevice);
    }

    /**
     * 新增virus device
     * 
     * @param tbVirusDevice virus device
     * @return 结果
     */
    @Override
    public int insertTbVirusDevice(TbVirusDevice tbVirusDevice)
    {
        return tbVirusDeviceMapper.insertTbVirusDevice(tbVirusDevice);
    }

    /**
     * 修改virus device
     * 
     * @param tbVirusDevice virus device
     * @return 结果
     */
    @Override
    public int updateTbVirusDevice(TbVirusDevice tbVirusDevice)
    {
        return tbVirusDeviceMapper.updateTbVirusDevice(tbVirusDevice);
    }

    /**
     * 批量删除virus device
     * 
     * @param ids 需要删除的virus device主键
     * @return 结果
     */
    @Override
    public int deleteTbVirusDeviceByIds(Long[] ids)
    {
        return tbVirusDeviceMapper.deleteTbVirusDeviceByIds(ids);
    }

    /**
     * 删除virus device信息
     * 
     * @param id virus device主键
     * @return 结果
     */
    @Override
    public int deleteTbVirusDeviceById(Long id)
    {
        return tbVirusDeviceMapper.deleteTbVirusDeviceById(id);
    }
}
